/*
 * @Author: yanjikun
 * @Date: 2022-05-13 11:50:48
 * @LastEditors: yanjikun
 * @LastEditTime: 2022-06-13 11:38:16
 * @Description: file content
 */
import { YAxios } from '@/utils/http/request'
import { api } from '..'

/**
 * @description: 登录
 * @param {API} params 请求参数
 * @author: yanjikun
 */
export function login(params: API.LoginParams) {
  return YAxios<API.UserInfo>({
    url: `${api.login}`,
    method: 'post',
    data: params,
  })
}
